/**
 * File name:      ErrorSqlException.java
 * Date:           2013-3-25
 * Description:    // 用于详细说明此程序文件完成的主要功
 *                 // 能与其他模块或函数的接口，输出值、
 *                 // 取值范围、含义及参数间的关系
 * Modify History:     Date             Programmer       Notes
 *                    ---------        ---------------  ---------
 *                    2013-3-25            伍冲                              Initial
 **********************************************************************/
package com.wy.framework.dao;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.wy.framework.exceptions.ServiceException;

/**
 * Created on 2013-3-25
 * <p>Title:       [数据库操纵异常]</p>
 * <p>Description: [数据库操纵异常]</p>
 * @version        1.0
 */
public class ErrorSqlException extends Exception{
   private static final long serialVersionUID = 28953608276477902L;
private static Logger logger = LoggerFactory.getLogger(ServiceException.class);
   public ErrorSqlException(String msg){
	   super(msg);
   }
   
   public ErrorSqlException(String msg,Throwable cause){
	   super(msg,cause);
	   logger.error(msg,cause);
   }
}
